<?php
if (!function_exists('getBlogHeadline')) 
{
	function getBlogHeadline()
	{
		$CI = &get_instance();
		$headline = $CI->input->post('headline');
		if($headline != null)
		{
			return $headline;
		}
		return null;
	}
}

if (!function_exists('getBlogMessage')) 
{
	function getBlogMessage()
	{
		$CI = &get_instance();
		$message = $CI->input->post('message');
		if($message != null)
		{
			return $message;
		}
		return null;
	}
}

// Functions to define urls and titles for the masterpage
if (!function_exists('getBlogBaseUrl'))
{
	function getBlogBaseUrl()
	{
		return "/home/index";
	}
}

if (!function_exists('getBlogViewUrl'))
{
	function getBlogViewUrl()
	{
		return "home/home";
	}
}

if (!function_exists('getBlogViewTitle'))
{
	function getBlogViewTitle()
	{
		return "Home";
	}
}

if (!function_exists('getBlogViewCommentsUrl'))
{
	function getBlogViewCommentsUrl()
	{
		return "home/comments";
	}
}

if (!function_exists('getBlogViewCommentsTitle'))
{
	function getBlogViewCommentsTitle()
	{
		return "Comments";
	}
}

if (!function_exists('getBlogCtrlBase'))
{
	function getBlogCtrlBase()
	{
		return "home/index";
	}
}

if (!function_exists('getBlogCommentsCtrlBase'))
{
	function getBlogCommentsCtrlBase()
	{
		return "home/comments";
	}
}
